import http from '@/http'
import { ListXsjkParam, XsjkModel } from './XsjkModel'
 

export const addUserApi = (param:XsjkModel) => {
    return http.post("/api/xsjk",param)
}

export const getListApi = (param:ListXsjkParam) => {
    return http.get("/api/xsjk/list",param)
}

export const editUserApi = (param:XsjkModel) => {
    return http.put("/api/xsjk",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/xsjk/${id}`)
}
